home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Apple Script / scripts / FileMaker & AppleScript / Copy Data Demo / CopyData / CopyData.rsrc / TEXT_1128.txt < prev    next >
Text File  |  1993-01-11  |  936b  |  10 lines

  1. To use this script you need to open the files "Original" and "Reduce".  To achieve this via Apple script, type the following two lines immediately following the line 'Tell application "FileMaker Pro"' (you may have to change the file path):
  2.        a)Open file named {"hard disk:FMP/AS examples:FileMaker Pro 2.0 Files:Original"}
  3.          b)Open file named {"hard disk:FMP/AS examples:FileMaker Pro 2.0 Files:Reduce"}
  4.                 where hard disk is the name of the hard disk on which the files are resident.
  5. This script copies a specific portion of one file into another file i.e.
  6. 1)It finds all records with a first name of Fred in the database named "Original"
  7. 2)Sorts the found set by surname
  8. 3)Counts the number of records in the found set
  9. 4)Creates  a new record in a new file (the database named "reduce") for each record in the found set of the original file and transfers the data from the original file to the reduced file.
  10.